﻿using System;
using System.Collections.Generic;
using EzDesk.Apps.Model.Attendance;
using EzDesk.Apps.ServiceImpl.Attendance;

namespace EzDesk.Apps.UnitTest
{
    public class AttendanceEvaluationContext : AttendanceContextBase<AttendanceEvaluator>
    {
        public AttendanceEvaluationContext()
        {
            initAttendanceConfig();
            this._userId = Guid.NewGuid();
            this._dayInfo = new DayInfo { Date = DateTime.Parse("2010-11-14 9:40:30") };
            this._extraManhours = 0;
            this._dayLeaveInfo = new DayLeaveInfo();
        }

        public override AttendanceEvaluator Service
        {
            get
            {
                return new AttendanceEvaluator(
                    _userId,
                    _attendanceConfig,
                    _attendanceInfoList,
                    _dayInfo, _dayLeaveInfo,
                    _extraManhours
                    );
            }
        }
    }
}